package app.gastos.rubro.dao;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import app.gastos.rubro.Rubro;
@Repository
public class RubroDaoImpl extends HibernateDaoSupport implements RubroDao{
    /**
     * @param entitySessionFactory SessionFactory
     */
    @Resource
    public void setEntitySessionFactory(SessionFactory sessionFactory) {
        super.setSessionFactory(sessionFactory);
    }
        @Override
        public List<Rubro> getList() {
            List<Rubro> ls=(List<Rubro>)getHibernateTemplate().find("from Rubro");
            
            return ls;
        }
}
